package com.aspose.cells;

class zbop {
   static double a = 0.0D;

   public static double a(double var0, double var2, double var4, boolean[] var6) {
      return a(var0, var2, var4, 0.0D, 1.0D, var6);
   }

   public static double a(double var0, double var2, double var4, double var6, double var8, boolean[] var10) {
      var10[0] = true;
      if (var0 >= var6 && var0 <= var8 && var8 > var6) {
         if (var2 >= 0.0D && var4 >= 0.0D) {
            var0 = (var0 - var6) / (var8 - var6);

            try {
               var10[0] = false;
               return zbog.c(var0, var2, var4);
            } catch (Exception var12) {
               var10[0] = true;
               return 0.0D;
            }
         } else {
            return 0.0D;
         }
      } else {
         return 0.0D;
      }
   }

   public static double b(double var0, double var2, double var4, double var6, double var8, boolean[] var10) {
      var10[0] = true;
      if (var0 > 0.0D && var0 <= 1.0D && var2 > 0.0D && var4 > 0.0D && var8 > var6) {
         double var11 = 0.0D;
         var10[0] = false;
         var11 = zbog.e(var0, var2, var4);
         var11 = var11 * (var8 - var6) + var6;
         return var11;
      } else {
         return 0.0D;
      }
   }

   private static double i(double var0, double var2) {
      double var4 = zbog.f((var2 + 1.0D) / 2.0D) / Math.sqrt(var2 * 3.141592653589793D) / zbog.f(var2 / 2.0D);
      double var6 = Math.pow(1.0D + var0 * var0 / var2, -(var2 + 1.0D) / 2.0D);
      return var4 * var6;
   }

   public static double a(double var0, double var2, int var4, boolean[] var5) {
      var5[0] = true;
      if (var2 >= 1.0D && var4 <= 2 && var4 >= 1 && var0 >= 0.0D) {
         try {
            zbop.za var8 = new zbop.za(var2);
            double var6;
            if (var0 < 5.0D) {
               var6 = var8.a(0.0D, var0, 1.0E-20D);
               var5[0] = false;
               var6 = 0.5D - var6;
               return var6 * (double)var4;
            } else {
               var6 = var8.a(0.0D, 5.0D, 1.0E-20D) + var8.a(5.0D, var0, 1.0E-20D);
               var5[0] = false;
               var6 = 0.5D - var6;
               return var6 * (double)var4;
            }
         } catch (Exception var9) {
            var5[0] = true;
            return Double.NaN;
         }
      } else {
         return Double.NaN;
      }
   }

   public static double a(double var0, double var2, boolean[] var4) {
      var4[0] = true;
      if (var2 >= 1.0D && var0 >= 0.0D && var0 <= 1.0D) {
         if (var0 == 0.0D) {
            var4[0] = false;
            return 1.0E7D;
         } else if (var0 == 1.0D) {
            var4[0] = false;
            return 0.0D;
         } else {
            try {
               zbop.zd var7 = new zbop.zd(var2);
               var7.a = var0;
               double var5 = 1.0D;
               double[] var8 = new double[]{var5};
               boolean var9 = var7.a(var8, 100, 1.0E-12D);
               var5 = var8[0];
               if (var9) {
                  var4[0] = false;
                  return var5;
               } else {
                  return 0.0D;
               }
            } catch (Exception var10) {
               var4[0] = true;
               return 0.0D;
            }
         }
      } else {
         return 0.0D;
      }
   }

   public static double b(double var0, double var2, boolean[] var4) {
      var4[0] = true;
      if (var0 >= 0.0D && var2 >= 1.0D && var2 <= 1.0E10D) {
         try {
            double var5 = 1.0D - zbog.a(var2 / 2.0D, var0 / 2.0D);
            var4[0] = false;
            return var5;
         } catch (Exception var8) {
            return 0.0D;
         }
      } else {
         return 0.0D;
      }
   }

   public static double c(double var0, double var2, boolean[] var4) {
      var4[0] = true;
      if (var0 > 0.0D && var0 <= 1.0D && var2 <= 1.0E10D && var2 >= 1.0D) {
         double var5 = 0.0D;

         try {
            zbop.zb var7 = new zbop.zb(var2);
            double[] var8 = new double[]{var5};
            boolean var9 = var7.a(var8, var0, 0.5D * var2, var2);
            var5 = var8[0];
            if (var9) {
               var4[0] = false;
               return var5;
            } else {
               return Double.NaN;
            }
         } catch (Exception var10) {
            return 0.0D;
         }
      } else {
         return 0.0D;
      }
   }

   public static double a(double var0, double var2, double var4) {
      if (var0 <= 0.0D) {
         return 0.0D;
      } else {
         double var6 = Math.pow(var2 * var0, var2) * Math.pow(var4, var4) / Math.pow(var2 * var0 + var4, var2 + var4);
         double var8 = Math.sqrt(var6) / var0 / zbog.b(var2 / 2.0D, var4 / 2.0D);
         return var8;
      }
   }

   public static double b(double var0, double var2, double var4, boolean[] var6) {
      var6[0] = true;
      if (var0 >= 0.0D && var2 >= 1.0D && var4 >= 1.0D && var2 < 1.0E10D && var4 < 1.0E10D) {
         if (var0 == 0.0D) {
            var6[0] = false;
            return 1.0D;
         } else {
            try {
               double var7 = a(var4 / (var4 + var2 * var0), var4 / 2.0D, var2 / 2.0D, var6);
               return var7;
            } catch (Exception var10) {
               var6[0] = true;
               return 0.0D;
            }
         }
      } else {
         return 0.0D;
      }
   }

   public static double c(double var0, double var2, double var4, boolean[] var6) {
      var6[0] = true;
      if (var0 >= 0.0D && var0 <= 1.0D && var2 >= 1.0D && var4 >= 1.0D && var2 < 1.0E10D && var4 < 1.0E10D) {
         if (var0 == 0.0D) {
            var6[0] = false;
            return 1.0E9D;
         } else if (var0 == 1.0D) {
            var6[0] = false;
            return 0.0D;
         } else {
            try {
               zbop.zc var9 = new zbop.zc(var2, var4);
               var9.a = var0;
               double var7;
               double[] var10;
               boolean var11;
               if (var0 < 1.0E-5D) {
                  var7 = 2000.0D;
                  var10 = new double[]{var7};
                  var11 = var9.a(var10, 100, 1.0E-10D);
                  var7 = var10[0];
                  if (var11) {
                     var6[0] = false;
                     return var7;
                  } else {
                     return Double.NaN;
                  }
               } else {
                  var7 = 1.0D;
                  var10 = new double[]{var7};
                  var11 = var9.a(var10, 100, 1.0E-10D);
                  var7 = var10[0];
                  if (var11) {
                     var6[0] = false;
                     return var7;
                  } else {
                     return Double.NaN;
                  }
               }
            } catch (Exception var12) {
               return 0.0D;
            }
         }
      } else {
         return Double.NaN;
      }
   }

   private static double h(double var0, double var2, double var4) {
      double var6 = 171.624376956302D;
      if (var0 <= 0.0D) {
         return 0.0D;
      } else {
         try {
            double var8 = var0 / var4;
            if (var8 > 1.0D) {
               double var10 = Math.log(Double.MAX_VALUE);
               return Math.log(var8) * (var2 - 1.0D) < var10 && var2 < var6 ? Math.pow(var8, var2 - 1.0D) * Math.exp(-var8) / var4 / zbog.f(var2) : Math.exp((var2 - 1.0D) * Math.log(var8) - var8 - Math.log(var4) - zbog.e(var2));
            } else {
               return var2 < var6 ? Math.pow(var8, var2 - 1.0D) * Math.exp(-var8) / var4 / zbog.f(var2) : Math.pow(var8, var2 - 1.0D) * Math.exp(-var8) / var4 / Math.exp(zbog.e(var2));
            }
         } catch (Exception var12) {
            return 0.0D;
         }
      }
   }

   public static double a(double var0, double var2) {
      try {
         return var0 <= 0.0D ? 0.0D : d(var2, var0 / 1.0D);
      } catch (Exception var5) {
         return 0.0D;
      }
   }

   public static double b(double var0, double var2, double var4) {
      try {
         return var0 <= 0.0D ? 0.0D : d(var2, var0 / var4);
      } catch (Exception var7) {
         return 0.0D;
      }
   }

   static double b(double var0, double var2) {
      double var4 = Double.MIN_VALUE;
      double var6 = 1.0D / var4;
      double var8 = 0.0D;
      double var10 = 0.0D;
      double var12 = 1.0D - var0;
      double var14 = var2 + 2.0D - var0;
      double var16 = 0.0D;
      double var18 = var2 + 1.0D;
      double var20 = 1.0D;
      double var22 = 1.0D;
      double var24 = var14 * var2;
      double var26 = var2;
      double var28 = var18 / var24;
      boolean var30 = false;
      double var31 = 0.0D;

      do {
         ++var8;
         ++var12;
         var10 = var12 * var8;
         var14 += 2.0D;
         var16 = var18 * var14 - var20 * var10;
         var22 = var24 * var14 - var26 * var10;
         if (var22 != 0.0D) {
            var31 = var16 / var22;
            var30 = Math.abs((var28 - var31) / var31) <= a;
            var28 = var31;
         }

         var20 = var18;
         var18 = var16;
         var26 = var24;
         var24 = var22;
         if (Math.abs(var16) > var6) {
            var20 *= var4;
            var18 = var16 * var4;
            var26 *= var4;
            var24 = var22 * var4;
         }
      } while(!var30 && var8 < 10000.0D);

      return !var30 ? 0.0D : var28;
   }

   static double c(double var0, double var2) {
      double var4 = var0;
      double var6 = 1.0D / var0;
      double var8 = var6;
      int var10 = 1;

      do {
         ++var4;
         var6 = var6 * var2 / var4;
         var8 += var6;
         ++var10;
      } while(var6 / var8 > a && var10 <= 10000);

      return var10 > 10000 ? 0.0D : var8;
   }

   static double d(double var0, double var2) {
      double var4 = var0 * Math.log(var2) - var2 - zbog.e(var0);
      double var6 = Math.exp(var4);
      return var2 > var0 + 1.0D ? 1.0D - var6 * b(var0, var2) : var6 * c(var0, var2);
   }

   public static double a(double var0, double var2, double var4, boolean var6) {
      if (var0 >= 0.0D && var2 > 0.0D && var4 > 0.0D) {
         if (!var6) {
            return h(var0, var2, var4);
         } else {
            try {
               return var0 <= 0.0D ? 0.0D : d(var2, var0 / var4);
            } catch (Exception var8) {
               return Double.NaN;
            }
         }
      } else {
         return Double.NaN;
      }
   }

   public static double c(double var0, double var2, double var4) {
      if (var0 >= 0.0D && var0 <= 1.0D && var2 > 0.0D && var4 > 0.0D) {
         try {
            return zbog.b(var0, var2, var4);
         } catch (Exception var7) {
            return 0.0D;
         }
      } else {
         return Double.NaN;
      }
   }

   public static double a(double var0, double var2, boolean var4, boolean[] var5) {
      var5[0] = true;
      if (var0 >= 0.0D && var2 > 0.0D) {
         double var6 = 0.0D;
         if (var4) {
            try {
               var6 = 1.0D - Math.exp(-var2 * var0);
               var5[0] = false;
               return var6;
            } catch (Exception var9) {
               ;
            }
         } else {
            try {
               var6 = var2 * Math.exp(-var2 * var0);
               var5[0] = false;
               return var6;
            } catch (Exception var10) {
               ;
            }
         }

         return Double.NaN;
      } else {
         return Double.NaN;
      }
   }

   public static double a(int var0, int var1, double var2, boolean var4, boolean[] var5) {
      var5[0] = true;
      if (var0 >= 0 && var0 <= var1) {
         if (var2 >= 0.0D && var2 <= 1.0D) {
            double var6 = 0.0D;
            if (var4) {
               try {
                  for(int var8 = var0; var8 >= 0; --var8) {
                     var6 += zbog.a(var1, var8) * Math.pow(var2, (double)var8) * Math.pow(1.0D - var2, (double)(var1 - var8));
                  }

                  var5[0] = false;
                  return var6;
               } catch (Exception var9) {
                  ;
               }
            } else {
               try {
                  var6 = zbog.a(var1, var0) * Math.pow(var2, (double)var0) * Math.pow(1.0D - var2, (double)(var1 - var0));
                  var5[0] = false;
                  return var6;
               } catch (Exception var10) {
                  ;
               }
            }

            return Double.NaN;
         } else {
            return Double.NaN;
         }
      } else {
         return Double.NaN;
      }
   }

   static double[][] a(double[] var0, double[] var1, boolean[] var2) {
      com.aspose.cells.b.a.za.a(var0);
      com.aspose.cells.b.a.za.a(var1);
      double[][] var3 = new double[var1.length + 1][];

      int var4;
      for(var4 = 0; var4 < var3.length; ++var4) {
         var3[var4] = new double[1];
      }

      var4 = 0;
      boolean var5 = false;
      int var6 = 0;

      for(int var7 = 0; var7 < var1.length; ++var7) {
         for(var4 = var6; var4 < var0.length && var0[var4] <= var1[var7]; ++var6) {
            ++var3[var7][0];
            ++var4;
         }
      }

      var3[var1.length][0] = (double)(var0.length - var4);
      var2[0] = false;
      return var3;
   }

   static Object a(double var0, double[] var2, double[] var3) {
      double var4 = 0.0D;
      double var6 = 0.0D;
      double var8 = 0.0D;
      double var10 = 0.0D;

      for(int var12 = 0; var12 < var2.length; ++var12) {
         var4 += var3[var12];
         var6 += var3[var12] * var3[var12];
         var8 += var3[var12] * var2[var12];
         var10 += var2[var12];
      }

      double var18 = (double)var2.length * var6 - var4 * var4;
      if (Math.abs(var18) < Double.MIN_VALUE) {
         return zst.a;
      } else {
         double var14 = ((double)var2.length * var8 - var4 * var10) / var18;
         double var16 = (var10 - var14 * var4) / (double)var2.length;
         return var14 * var0 + var16;
      }
   }

   static double a(double[] var0) {
      double var1 = 0.0D;

      for(int var3 = 0; var3 < var0.length; ++var3) {
         var1 += var0[var3];
      }

      return var1;
   }

   static Object b(double[] var0) {
      return var0.length == 0 ? zst.a : a(var0) / (double)var0.length;
   }

   static double c(double[] var0) {
      if (var0.length == 0) {
         return 0.0D;
      } else {
         double var1 = var0[0];

         for(int var3 = 1; var3 < var0.length; ++var3) {
            if (var0[var3] < var1) {
               var1 = var0[var3];
            }
         }

         return var1;
      }
   }

   static double d(double[] var0) {
      if (var0.length == 0) {
         return 0.0D;
      } else {
         double var1 = var0[0];

         for(int var3 = 1; var3 < var0.length; ++var3) {
            if (var0[var3] > var1) {
               var1 = var0[var3];
            }
         }

         return var1;
      }
   }

   static double e(double[] var0) {
      if (var0.length == 0) {
         return 0.0D;
      } else {
         double var1 = 1.0D;

         for(int var3 = 0; var3 < var0.length; ++var3) {
            var1 *= var0[var3];
         }

         return var1;
      }
   }

   static Object f(double[] var0) {
      if (var0.length < 2) {
         return zst.a;
      } else {
         double var1 = 0.0D;
         double var3 = 0.0D;

         for(int var5 = 0; var5 < var0.length; ++var5) {
            var3 += var0[var5];
            var1 += var0[var5] * var0[var5];
         }

         return Math.sqrt(((double)var0.length * var1 - var3 * var3) / (double)(var0.length * (var0.length - 1)));
      }
   }

   static Object g(double[] var0) {
      if (var0.length < 2) {
         return zst.a;
      } else {
         double var1 = 0.0D;
         double var3 = 0.0D;

         for(int var5 = 0; var5 < var0.length; ++var5) {
            var3 += var0[var5];
            var1 += var0[var5] * var0[var5];
         }

         return ((double)var0.length * var1 - var3 * var3) / (double)(var0.length * (var0.length - 1));
      }
   }

   static Object h(double[] var0) {
      if (var0.length == 0) {
         return zst.a;
      } else {
         double var1 = 0.0D;
         double var3 = 0.0D;

         for(int var5 = 0; var5 < var0.length; ++var5) {
            var3 += var0[var5];
            var1 += var0[var5] * var0[var5];
         }

         return Math.sqrt(((double)var0.length * var1 - var3 * var3) / (double)(var0.length * var0.length));
      }
   }

   static Object i(double[] var0) {
      if (var0.length == 0) {
         return zst.a;
      } else {
         double var1 = 0.0D;
         double var3 = 0.0D;

         for(int var5 = 0; var5 < var0.length; ++var5) {
            var3 += var0[var5];
            var1 += var0[var5] * var0[var5];
         }

         return ((double)var0.length * var1 - var3 * var3) / (double)(var0.length * var0.length);
      }
   }

   static Object b(double var0, double var2, double var4, boolean var6) {
      if (var0 >= 0.0D && var2 > 0.0D && var4 > 0.0D) {
         double var7 = Math.pow(var0 / var4, var2);
         var7 = Math.exp(-var7);
         return var6 ? 1.0D - var7 : var2 / Math.pow(var4, var2) * Math.pow(var0, var2 - 1.0D) * var7;
      } else {
         return zst.f;
      }
   }

   static Object a(double[] var0, double[] var1) {
      double var2 = 0.0D;
      double var4 = 0.0D;
      double var6 = 0.0D;
      double var8 = 0.0D;
      double var10 = 0.0D;
      int var12 = var1.length;
      if (var1.length != 0 && var0.length != 0 && var1.length == var0.length) {
         for(int var13 = 0; var13 < var12; ++var13) {
            var4 += var1[var13] * var0[var13];
            var6 += var1[var13] * var1[var13];
            var8 += var1[var13];
            var10 += var0[var13];
         }

         if ((double)var12 * var6 - var8 * var8 == 0.0D) {
            return zst.c;
         } else {
            var2 = ((double)var12 * var4 - var8 * var10) / ((double)var12 * var6 - var8 * var8);
            return var2;
         }
      } else {
         return zst.c;
      }
   }

   static double e(double var0, double var2) {
      return f(var0, var2) / f(var2, var2);
   }

   static double f(double var0, double var2) {
      double var4 = 1.0D;
      var0 = Math.floor(var0);
      var2 = Math.floor(var2);

      for(double var6 = var0; var6 > var0 - var2; --var6) {
         var4 *= var6;
      }

      return var4;
   }

   static Object d(double var0, double var2, double var4) {
      return var4 <= 0.0D ? zst.f : (var0 - var2) / var4;
   }

   static Object g(double var0, double var2) {
      if (var0 >= 0.0D && var2 >= 0.0D && var0 >= var2) {
         double var4 = f(var0, var2);
         return var4;
      } else {
         return zst.f;
      }
   }

   static Object b(double[] var0, double[] var1) {
      double var2 = 0.0D;
      double var4 = a(var0, 1, var0.length);
      double var6 = a(var1, 1, var1.length);
      double var8 = 0.0D;
      double var10 = 0.0D;
      double var12 = 0.0D;
      if (var1.length != 0 && var0.length != 0 && var1.length == var0.length) {
         int var14 = var1.length;

         for(int var15 = 0; var15 < var14; ++var15) {
            var8 += (var1[var15] - var6) * (var1[var15] - var6);
            var10 += (var0[var15] - var4) * (var0[var15] - var4);
            var12 += (var1[var15] - var6) * (var0[var15] - var4);
         }

         var2 = var10 - var12 * var12 / var8;
         var2 /= (double)(var14 - 2);
         return Math.sqrt(var2);
      } else {
         return zst.c;
      }
   }

   static double a(double[] var0, int var1, int var2) {
      double var3 = 0.0D;

      for(int var5 = 0; var5 < var2; ++var5) {
         var3 += (var0[var5 * var1] - var3) / (double)(var5 + 1);
      }

      return var3;
   }

   static double j(double[] var0) {
      double var1 = var0[0];

      for(int var3 = 1; var3 < var0.length; ++var3) {
         var1 += var0[var3];
      }

      return var1;
   }

   static Object a(double[] var0, double var1) {
      if (var1 >= 0.0D && var1 < 1.0D) {
         com.aspose.cells.b.a.za.a(var0);
         double var3 = 0.0D;
         int var5 = var0.length;
         int var6 = (int)((double)var0.length * var1);
         if (var6 == 0) {
            var3 = a(var0, 1, var0.length);
         } else {
            int var7 = var6 / 2;

            for(int var8 = 0; var8 < var7; ++var8) {
               var0[var8] = 0.0D;
               var0[var5 - 1 - var8] = 0.0D;
            }

            var3 = a(var0) / (double)(var5 - var7 * 2);
         }

         return var3;
      } else {
         return zst.f;
      }
   }

   static Object c(double[] var0, double[] var1) {
      double var2 = a(var0, 1, var0.length);
      double var4 = a(var1, 1, var1.length);
      Object var6 = a(var0, var1);
      return var6.equals(zst.c) ? zst.c : var2 - (Double)var6 * var4;
   }

   static Object k(double[] var0) {
      int var1 = var0.length;
      if (var1 < 4) {
         return zst.a;
      } else {
         double var2 = a(var0, 1, var1);
         double var4 = Math.sqrt(b(var0, 1, var1));
         if (var4 == 0.0D) {
            return zst.a;
         } else {
            double var6 = 0.0D;
            double var8 = 0.0D;

            for(int var10 = 0; var10 < var1; ++var10) {
               double var11 = (var0[var10] - var2) / var4;
               var6 += var11 * var11 * var11 * var11;
            }

            var8 = (double)(var1 * (var1 + 1)) / (double)((var1 - 1) * (var1 - 2) * (var1 - 3)) * var6 - (double)(3 * (var1 - 1) * (var1 - 1)) / (double)((var1 - 2) * (var1 - 3));
            return var8;
         }
      }
   }

   static Object l(double[] var0) {
      int var1 = var0.length;
      if (var1 < 3) {
         return zst.a;
      } else {
         double var2 = a(var0, 1, var1);
         double var4 = Math.sqrt(b(var0, 1, var1));
         if (var4 == 0.0D) {
            return zst.a;
         } else {
            double var6 = 0.0D;
            double var8 = 0.0D;

            for(int var10 = 0; var10 < var1; ++var10) {
               double var11 = (var0[var10] - var2) / var4;
               var6 += var11 * var11 * var11;
            }

            var8 = (double)var1 / (double)((var1 - 1) * (var1 - 2)) * var6;
            return var8;
         }
      }
   }

   static double b(double[] var0, int var1, int var2) {
      double var3 = a(var0, var1, var2);
      return a(var0, var1, var2, var3);
   }

   static double a(double[] var0, int var1, int var2, double var3) {
      double var5 = b(var0, var1, var2, var3);
      return var5 * ((double)var2 / (double)(var2 - 1));
   }

   static double b(double[] var0, int var1, int var2, double var3) {
      double var5 = 0.0D;

      for(int var7 = 0; var7 < var2; ++var7) {
         double var8 = var0[var7 * var1] - var3;
         var5 += (var8 * var8 - var5) / (double)(var7 + 1);
      }

      return var5;
   }

   static Object a(double[] var0, double[] var1, double var2, double var4) {
      int var6 = var0.length;
      int var7 = var1.length;
      if (var6 != var7) {
         return zst.c;
      } else {
         double var8 = 0.0D;

         int var10;
         for(var10 = 0; var10 < var7; ++var10) {
            if (var1[var10] <= 0.0D || var1[var10] > 1.0D) {
               return zst.f;
            }
         }

         if (a(var1) > 1.0D) {
            return zst.f;
         } else {
            for(var10 = 0; var10 < var6; ++var10) {
               if (var0[var10] <= var4 && var0[var10] >= var2) {
                  var8 += var1[var10];
               }
            }

            return var8;
         }
      }
   }

   static Object a(double[] var0, double[] var1, double var2) {
      int var4 = var0.length;
      int var5 = var1.length;
      if (var4 != var5) {
         return zst.c;
      } else {
         double var6 = 0.0D;

         int var8;
         for(var8 = 0; var8 < var5; ++var8) {
            if (var1[var8] <= 0.0D || var1[var8] > 1.0D) {
               return zst.f;
            }
         }

         if (a(var1) > 1.0D) {
            return zst.f;
         } else {
            for(var8 = 0; var8 < var4; ++var8) {
               if (var0[var8] == var2) {
                  var6 = var1[var8];
                  break;
               }
            }

            return var6;
         }
      }
   }

   static Object e(double var0, double var2, double var4) {
      if (var0 >= 0.0D && var0 <= 1.0D && var4 > 0.0D) {
         double var6 = zaor.a(var0);
         return Math.exp(var2 + var4 * var6);
      } else {
         return zst.f;
      }
   }

   static Object f(double var0, double var2, double var4) {
      if (var0 > 0.0D && var4 > 0.0D) {
         double var6 = (Math.log(var0) - var2) / var4;
         return zaor.b(var6);
      } else {
         return zst.f;
      }
   }

   static Object a(double var0, double var2, int var4) {
      if (var0 > 0.0D && var0 < 1.0D && var2 > 0.0D && var4 >= 1) {
         double var5 = zaor.a(1.0D - var0 / 2.0D);
         return var5 * var2 / Math.sqrt((double)var4);
      } else {
         return zst.f;
      }
   }

   static Object d(double[] var0, double[] var1) {
      if (var0.length != 0 && var1.length != 0) {
         if (var0.length != var1.length) {
            return zst.c;
         } else {
            double var2 = a(var0, 1, var0.length);
            double var4 = a(var1, 1, var1.length);
            double var6 = 0.0D;
            boolean var8 = false;

            for(int var13 = 0; var13 < var0.length; ++var13) {
               double var9 = var0[var13] - var2;
               double var11 = var1[var13] - var4;
               var6 += var9 * var11;
            }

            return var6 / (double)var0.length;
         }
      } else {
         return zst.a;
      }
   }

   static Object a(int var0, double var1, double var3) {
      if (var0 >= 0 && var1 >= 0.0D && var1 <= 1.0D && var3 >= 0.0D && var3 <= 1.0D) {
         boolean var5 = false;
         double var6 = 0.0D;
         boolean var8 = false;

         int var10;
         for(var10 = 0; var10 <= var0; ++var10) {
            boolean[] var9 = new boolean[]{var8};
            var6 += a(var10, var0, var1, false, var9);
            var8 = var9[0];
            if (var6 >= var3) {
               break;
            }
         }

         var10 = var10 > var0 ? var0 : var10;
         return (double)var10;
      } else {
         return zst.f;
      }
   }

   static Object m(double[] var0) {
      if (var0.length == 0) {
         return zst.f;
      } else {
         Object var1 = b(var0);
         if (!(var1 instanceof Double)) {
            return zst.f;
         } else {
            double var2 = (Double)var1;
            double var4 = 0.0D;

            for(int var6 = 0; var6 < var0.length; ++var6) {
               var4 += Math.abs(var0[var6] - var2);
            }

            return var4 / (double)var0.length;
         }
      }
   }

   static Object n(double[] var0) {
      int var1 = var0.length;
      double var2 = a(var0, 1, var1);
      double var4 = 0.0D;

      for(int var6 = 0; var6 < var1; ++var6) {
         double var7 = (var0[var6] - var2) * (var0[var6] - var2);
         var4 += var7;
      }

      return var4;
   }

   static Object a(double var0) {
      if (var0 > -1.0D && var0 < 1.0D) {
         double var2 = Math.log((1.0D + var0) / (1.0D - var0));
         return var2 / 2.0D;
      } else {
         return zst.f;
      }
   }

   static Object b(double var0) {
      double var2 = (Math.exp(2.0D * var0) - 1.0D) / (Math.exp(2.0D * var0) + 1.0D);
      return var2;
   }

   static Object a(double[][] var0, double[][] var1) {
      int var2 = var0.length;
      int var3 = var1.length;
      if (var2 != var3) {
         return zst.c;
      } else {
         double var4 = 0.0D;
         boolean var6 = false;
         int var7 = (var2 - 1) * (var0[0].length - 1);

         for(int var8 = 0; var8 < var2; ++var8) {
            for(int var9 = 0; var9 < var0[var8].length; ++var9) {
               var4 += (var0[var8][var9] - var1[var8][var9]) * (var0[var8][var9] - var1[var8][var9]) / var1[var8][var9];
            }
         }

         boolean[] var10 = new boolean[]{var6};
         var4 = b(var4, (double)var7, var10);
         var6 = var10[0];
         return var4;
      }
   }

   static Object c(double var0) {
      return var0 < 0.0D ? zst.f : zbog.e(var0);
   }

   static Object o(double[] var0) {
      int var1 = var0.length;
      if (var1 <= 0) {
         return zst.f;
      } else {
         double var2 = 0.0D;

         for(int var4 = 0; var4 < var1; ++var4) {
            if (var0[var4] <= 0.0D) {
               return zst.f;
            }

            var2 += 1.0D / var0[var4];
         }

         return (double)var1 / var2;
      }
   }

   static Object a(double var0, double var2, double var4, double var6) {
      if (var0 >= 0.0D && var0 <= (var2 < var4 ? var2 : var4) && var2 >= 0.0D && var2 <= var6 && var4 >= 0.0D && var4 <= var6 && var6 >= 0.0D) {
         var0 = Math.floor(var0);
         var2 = Math.floor(var2);
         var4 = Math.floor(var4);
         var6 = Math.floor(var6);
         double var8 = e(var4, var0) * e(var6 - var4, var2 - var0) / e(var6, var2);
         return var8;
      } else {
         return zst.f;
      }
   }

   static Object g(double var0, double var2, double var4) {
      if (var0 >= 0.0D && var2 >= 0.0D && var4 >= 0.0D && var4 <= 1.0D) {
         double var6 = 1.0D - var4;
         double var8 = Math.pow(var4, var2);

         for(double var10 = 0.0D; var10 < var0; ++var10) {
            var8 *= (var10 + var2) / (var10 + 1.0D) * var6;
         }

         return var8;
      } else {
         return zst.f;
      }
   }

   static Object a(double[] var0, double var1, double var3) {
      if (var3 < 1.0D) {
         return zst.f;
      } else {
         boolean var5 = false;
         int var6 = -1;
         boolean var7 = false;
         double var8 = 0.0D;
         int var10 = var0.length;
         com.aspose.cells.b.a.za.a(var0);

         int var13;
         for(var13 = 0; var13 < var10; ++var13) {
            if (var0[var13] < var1) {
               ++var6;
            } else if (var0[var13] == var1) {
               var7 = true;
               break;
            }
         }

         if (var10 == 1) {
            return var7 ? zml.h : zst.c;
         } else {
            if (var7) {
               var8 = (double)var13 / (double)(var10 - 1);
            } else {
               var8 = ((double)var6 + (var1 - var0[var6]) / (var0[var6 + 1] - var0[var6])) / (double)(var10 - 1);
            }

            double var11 = Math.pow(10.0D, var3);
            return (double)((int)(var11 * var8)) / var11;
         }
      }
   }

   static Object b(double[] var0, double var1) {
      return a(var0, var1, 3.0D);
   }

   static Object b(double[] var0, double var1, double var3) {
      if (var0.length == 0) {
         return zst.c;
      } else {
         double var5 = a(var0, 1, var0.length);
         double var7 = (var5 - var1) / (var3 / Math.sqrt((double)var0.length));
         double var9 = 1.0D - zaor.b(var7);
         return var9;
      }
   }

   static Object c(double[] var0, double var1) {
      if (var0.length == 0) {
         return zst.c;
      } else {
         double var3 = a(var0, 1, var0.length);
         double var5 = b(var0, 1, var0.length);
         double var7 = (var3 - var1) / Math.sqrt(var5 / (double)var0.length);
         double var9 = 1.0D - zaor.b(var7);
         return var9;
      }
   }

   private static class zc extends zaob {
      private double b;
      private double c;

      public zc(double var1, double var3) {
         this.b = var1;
         this.c = var3;
      }

      protected void a(double var1, double[] var3) {
         boolean var4 = true;
         boolean[] var5 = new boolean[]{var4};
         var3[0] = zbop.b(var1, this.b, this.c, var5) - this.a;
         var4 = var5[0];
         var3[1] = -zbop.a(var1, this.b, this.c);
      }
   }

   private static class zb extends zaob {
      private double b;

      public zb(double var1) {
         this.b = var1;
      }

      protected double a(double var1) {
         boolean var3 = true;
         boolean[] var4 = new boolean[]{var3};
         double var5 = zbop.b(var1, this.b, var4);
         var3 = var4[0];
         return var5;
      }
   }

   private static class zd extends zaob {
      private double b;

      public zd(double var1) {
         this.b = var1;
      }

      protected void a(double var1, double[] var3) {
         boolean var4 = true;
         boolean[] var5 = new boolean[]{var4};
         var3[0] = zbop.a(var1, this.b, 2, var5) - this.a;
         var4 = var5[0];
         var3[1] = -2.0D * zbop.i(var1, this.b);
      }
   }

   private static class za extends zakn {
      private double a;

      public za(double var1) {
         this.a = var1;
      }

      public double a(double var1) {
         return zbop.i(var1, this.a);
      }
   }
}
